package com.ponhu.ea2.stockcenter.provider.service.entity;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ponhu.ea2.stockcenter.provider.entity.StockWarehouseRelation;

import java.util.Collection;
import java.util.List;

/**
 *
 */
public interface StockWarehouseRelationService extends IService<StockWarehouseRelation> {

    /**
     * 根据货品编码和仓库编码查询货品仓库库存信息
     *
     * @param inventoryCodeList
     * @return
     */
    List<StockWarehouseRelation> getStockWarehouseRelations(Collection<String> inventoryCodeList, String warehouseCode, Boolean hasStock);

    /**
     * 根据货品编码和仓库编码查询货品仓库库存信息
     *
     * @param inventoryCodeList
     * @return
     */
    List<StockWarehouseRelation> getStockWarehouseRelations(Collection<String> inventoryCodeList, String warehouseCode);

    /**
     * 根据货品编码查询货品仓库库存信息
     *
     * @param inventoryCodeList
     * @return
     */
    List<StockWarehouseRelation> getRelationsByInventoryCodes(Collection<String> inventoryCodeList);

    /**
     * 根据获取编码查询总实物库存
     * @param inventoryCode
     * @return
     */
    Integer getTotalRealStockNumByInventoryCode(String inventoryCode);

    /**
     * 根据仓库编码查询货品仓库库存信息
     *
     * @param warehouseCode
     * @return
     */
    List<StockWarehouseRelation> getRelationsByWarehouseCode(String warehouseCode, Boolean hasStock);

}
